<template>
	<view class="wrap">
		<view class="goodsWrap" v-for="item in showGoods" :key="item.goods_id">
			<view class="pic">
				<image :src="item.goods_pic[0].pics_url" mode="widthFix"></image>
			</view>
			<view class="info">
				<view class="goodsName">{{item.goods_name}}</view>
				<view class="goodsDesc">{{item.goods_introduce[0]}}</view>
				<view class="goodsPrice">{{item.goods_price}}</view>
			</view>
		</view>
	</view>
</template>

<script>
	export default {
		name:"uni-search-goods",
		props:{
			showGoods:Array
		},
		data() {
			return {
				
			};
		}
	}
</script>

<style lang="less">
	.wrap{
		padding: 30rpx;
		.goodsWrap{
			display: flex;
			border-bottom: 1rpx solid #efefef;
			padding: 20rpx 0;
			.pic{
				flex: 3;
				image{
					width: 100%;
				}
			}
			.info{
				flex: 5;
				padding-left: 20rpx;
				.goodsName{
					font-size: 32rpx;
					font-weight: bold;
				}
				.goodsDesc{
					color: #666;
					font-size: 26rpx ;
					text-overflow: ellipsis;
					white-space: nowrap;
					overflow: hidden;
					width: 80%;
				}
			}
		}
	}
</style>
